/* 论坛公共样式 */
.forum-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 帖子卡片样式 */
.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-author {
    font-weight: bold;
    color: #333;
}

.post-date {
    font-size: 12px;
    color: #999;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.post-title a {
    color: #3498db;
    text-decoration: none;
}

.post-content-preview {
    color: #666;
    line-height: 1.5;
}

/* 详情页样式 */
.post-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.post-content {
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

/* 评论对话框样式 */
.comment-bubble {
    display: flex;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 12px 15px;
    max-width: 80%;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    align-self: flex-start;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    margin-right: 8px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.btn-submit {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-new-post {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 20px;
}